package com.yonyou.crm.sys.appmenu.rmimpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yonyou.crm.common.page.entity.Page;
import com.yonyou.crm.sys.appmenu.entity.*;
import com.yonyou.crm.sys.appmenu.rmitf.IAppMenuRmService;
import com.yonyou.crm.sys.appmenu.service.AppMenuBizServiceImpl;

@Service("appMenuService")
public class AppMenuRmServiceImpl implements IAppMenuRmService {

	@Autowired
	private AppMenuBizServiceImpl bizService;
	
	public Page<MenuVO> getList(Page<MenuVO> page,Map<String, Object> paraMap) {
		return bizService.getList(page, paraMap);
	}
	
	public List<AppMenuVO> getList(Map<String, Object> paraMap) {
		return bizService.getList(paraMap);
	}
	
	public MenuVO getDetail(Long id) {
		return bizService.getDetail(id);
	}
	
	public MenuVO insert(MenuVO user) {
		return bizService.saveVO(user);
	}
	
	public MenuVO update(MenuVO user) {
		return bizService.update(user);
	}
	
	public int delete(Long id) {
		return bizService.delete(id);
	}
	
	public Page<MenuVO> batchDelete(String[] ids, Page<MenuVO> page,Map<String, Object> paraMap) {
		bizService.batchDelete(ids);
		return bizService.getList(page, paraMap);
	}
	
	public MenuVO updateEnableState(Long id, Integer enableState) {
		return bizService.updateEnableState(id, enableState);
	}

}
